package com.ruoyi.order.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 菜品对象 tb_menu
 *
 * @author ruoyi
 * @date 2023-02-02
 */
public class TbMenu extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 菜品名称 */
    @Excel(name = "菜品名称")
    private String menuName;

    /** 菜品价格 */
    @Excel(name = "菜品价格")
    private BigDecimal menuPrice;

    /** 菜品类型 */
    @Excel(name = "菜品类型")
    private Long menuTypeId;

    /** 菜品数量 */
    @Excel(name = "菜品数量")
    private Long menuCount;

    /** 菜品图片 */
    @Excel(name = "菜品图片")
    private String menuLogo;

    /** 关联优惠卷id */
    private Integer couponId;

    public Integer getCouponId() {
        return couponId;
    }

    public void setCouponId(Integer couponId) {
        this.couponId = couponId;
    }

    /** 菜品更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "菜品更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date menuLostTime;



    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setMenuName(String menuName)
    {
        this.menuName = menuName;
    }

    public String getMenuName()
    {
        return menuName;
    }
    public void setMenuPrice(BigDecimal menuPrice)
    {
        this.menuPrice = menuPrice;
    }

    public BigDecimal getMenuPrice()
    {
        return menuPrice;
    }
    public void setMenuTypeId(Long menuTypeId)
    {
        this.menuTypeId = menuTypeId;
    }

    public Long getMenuTypeId()
    {
        return menuTypeId;
    }
    public void setMenuCount(Long menuCount)
    {
        this.menuCount = menuCount;
    }

    public Long getMenuCount()
    {
        return menuCount;
    }
    public void setMenuLogo(String menuLogo)
    {
        this.menuLogo = menuLogo;
    }

    public String getMenuLogo()
    {
        return menuLogo;
    }
    public void setMenuLostTime(Date menuLostTime)
    {
        this.menuLostTime = menuLostTime;
    }

    public Date getMenuLostTime()
    {
        return menuLostTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("menuName", getMenuName())
                .append("menuPrice", getMenuPrice())
                .append("menuTypeId", getMenuTypeId())
                .append("menuCount", getMenuCount())
                .append("menuLogo", getMenuLogo())
                .append("menuLostTime", getMenuLostTime())
                .append("createTime", getCreateTime())
                .toString();
    }
}
